<?php
/**
 * Created by PhpStorm.
 * User: W
 * Date: 2019/1/7
 * Time: 11:20
 */

namespace app\sports_admin\model;


use think\Model;

class ClassModel extends Model
{
    protected $table = "grade_class";
    protected $pk    = "id";

    public function getGrade()
    {
        return $this->belongsTo('grade','grade_id','id')->field('id,grade_title');
    }
}